<?php
class Library_LanguageswitchController extends Zend_Controller_Action{
	public function _init(){
		$this->_helper->layout->disableLayout();
		$this->_helper->viewRenderer->setNoRender();
	}
	public function switchAction(){
		$session = new Zend_Session_Namespace(www);
		$session->language = $this->_getParam('lang');
		
		$this->_redirect('library/books/list');
	}
}